﻿using System;

namespace PolePosition.v3.WcfService.ImageViewer
{
    public partial class Image : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["PATH"] != null) {
                PPIImage.ImageUrl = Request.QueryString["PATH"];

                var rawUrl = Request.RawUrl;
                var paramPathName = "PATH=";
                PPIImage.ImageUrl = rawUrl.Substring(rawUrl.IndexOf(paramPathName) + paramPathName.Length);
            }
        }
    }
}
